﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace FrasesSimpsonsMvc.Models
{

    public static class TemporadasExtensions
    {

        public static void LoadRelatedEntities(this Temporadas temporada)
        {
            temporada.Capitulos.Load();

            foreach (var cap in temporada.Capitulos)
            {
                cap.LoadRelatedEntities();
            }
        }

    }
}
